'''
Created on Apr 2, 2013

@author: kevinbauer
'''

import sys

from TrainingData1 import TrainingData
from TestingData1 import TestingData
from NeuralNetwork1 import NeuralNetwork
from TestData1 import Test
from Validation1 import Validate


# Import the data
training = TrainingData(sys.argv[1])
testing = TestingData(sys.argv[2])
print "Loaded the data.\n"

# Construct the neural network
neural = NeuralNetwork(training.getTrainingData())
hypothesis = neural.hypothesize()
print "Developed a hypothesis.\n"

# Initialize the test
t = Test(hypothesis, testing.getTestingData())
print "Initialized the test.\n"

# Get the results from the test
results = t.runTest()
print "Obtained results.\n"

# Validate the results
valid = Validate(results, testing.getTestingType())
valid.compare()









